﻿#region

using System.Collections.Generic;
using System.Runtime.Serialization;

#endregion

namespace VinhSon.Intranet.Models
{
    [DataContract]
    public class UpdateResult
    {
        public static string INFORMATION_IN_USED = "informationhasbeenused";

        public static string ERROR_WHEN_UPDATED = "errorwhenupdated";

        public static string INFORMATION_HAS_EXISTS = "informationhasexists";

        public UpdateResult()
        {
            State = 1;
            KeyLanguage = "updatesuccessful";
            KeyLanguages = new List<string>();
        }

        /// <summary>
        ///     1 : Success
        ///     2 : Information
        ///     3 : Warning
        ///     4 : Error
        /// </summary>
        [DataMember]
        public int State { get; set; }

        [DataMember]
        public string KeyLanguage { get; set; }

        [DataMember]
        public List<string> KeyLanguages { get; set; }

        [DataMember]
        public object Value { get; set; }
    }
}
